package polymorphism.music3;

public class Music3 {
	public static void main(String[] args) {
		Instrument[] orchestra= {
				new Wind(),
				new Percussion(),
				new Stringed(),
				new Brass(),
				new Woodwind()
		};
		tuneAll(orchestra);
	}
	public static void tuneAll(Instrument[] e) {
		for(Instrument i:e) {
			tune(i);
		}
	}
	
	public static void tune(Instrument e) {
		e.play(Note.MIDDLE_C);
	}
}
